package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 部门文件归档对象 dept_file_archived
 *
 * @author ruoyi
 * @date 2024-04-20
 */
public class DeptFileArchived extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 归档id */
    private Long archivedId;

    /** 父id */
    private Long parentId;

    private String associationId;

    /** 祖级列表 */
    private String ancestors;

    /** 部门id */
    private Long deptId;

    /** 文件名称 */
    private String fileName;

    /** 文件类型：0文件夹，1用户文件 */
    private String fileType;

    /** 文件大小（KB） */
    private Long fileSize;

    /** 上传地址 */
    private String fileUrl;

    /** 文件路径 */
    private String filePath;

    /** 删除标志（0删除 1存在） */
    private String delFlag;

    /** 创建人名字 */
    @Excel(name = "创建人名字")
    private String createName;

    public void setArchivedId(Long archivedId)
    {
        this.archivedId = archivedId;
    }

    public Long getArchivedId()
    {
        return archivedId;
    }
    public void setParentId(Long parentId)
    {
        this.parentId = parentId;
    }

    public Long getParentId()
    {
        return parentId;
    }
    public void setAncestors(String ancestors)
    {
        this.ancestors = ancestors;
    }

    public String getAncestors()
    {
        return ancestors;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }
    public void setFileName(String fileName)
    {
        this.fileName = fileName;
    }

    public String getFileName()
    {
        return fileName;
    }
    public void setFileType(String fileType)
    {
        this.fileType = fileType;
    }

    public String getFileType()
    {
        return fileType;
    }
    public void setFileSize(Long fileSize)
    {
        this.fileSize = fileSize;
    }

    public Long getFileSize()
    {
        return fileSize;
    }
    public void setFileUrl(String fileUrl)
    {
        this.fileUrl = fileUrl;
    }

    public String getFileUrl()
    {
        return fileUrl;
    }
    public void setFilePath(String filePath)
    {
        this.filePath = filePath;
    }

    public String getFilePath()
    {
        return filePath;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setCreateName(String createName)
    {
        this.createName = createName;
    }

    public String getCreateName()
    {
        return createName;
    }

    public String getAssociationId() {
        return associationId;
    }

    public void setAssociationId(String associationId) {
        this.associationId = associationId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("archivedId", getArchivedId())
            .append("parentId", getParentId())
            .append("ancestors", getAncestors())
            .append("deptId", getDeptId())
            .append("fileName", getFileName())
            .append("fileType", getFileType())
            .append("fileSize", getFileSize())
            .append("fileUrl", getFileUrl())
            .append("filePath", getFilePath())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("createName", getCreateName())
            .toString();
    }
}
